<form class="layui-form layui-form-pane" action="{:url('')}" id="editForm" method="post">


    <div class="layui-form-item">
        <label class="layui-form-label">图书馆区域</label>
        <div class="layui-input-inline">
            <select name="areaid" class="field-areaid" type="select">
                {$level_option}
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">开始时间</label>
        <div class="layui-input-inline">
            <input type="text" class="layui-input field-starttime" name="starttime" id="starttime" readonly lay-verify="required" placeholder="请选择开始时间">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">结束时间</label>
        <div class="layui-input-inline">
            <input type="text" class="layui-input field-endtime" name="endtime" id="endtime" readonly lay-verify="required" placeholder="请选择结束时间">
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <input type="hidden" class="field-id" name="id">
            <button type="submit" class="layui-btn layui-btn-normal" lay-submit="" lay-filter="formSubmit">提交</button>
            <a href="{:url('index')}" class="layui-btn layui-btn-primary ml10"><i class="aicon ai-fanhui"></i>返回</a>
        </div>
    </div>
</form>
{include file="admin@block/layui" /}

<script>
/* 修改模式下需要将数据放入此变量 */
var formData = {:json_encode($data_info)};
layui.use('laydate', function(){
  var laydate = layui.laydate;
  //执行一个laydate实例
  laydate.render({
    elem: '#starttime',
    type: 'datetime',
    format:'yyyy-MM-dd HH:mm'
  });
  laydate.render({
    elem: '#endtime',
    type: 'datetime',
    format:'yyyy-MM-dd HH:mm'
  });
});
</script>
<script src="__ADMIN_JS__/footer.js"></script>